package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.Users;
import com.example.service.UsersService;
import com.example.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
* @author Hauen
* @description 针对表【users】的数据库操作Service实现
* @createDate 2022-11-29 18:48:28
*/
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users>
    implements UsersService{
    @Autowired
    UsersMapper mapper;






    @Override
    public Users byId(int id) {
        return mapper.selectById(id);
    }

    @Override
    public List<Users> findAll() {
        return findAll();
    }
}




